package io.github.hayeka.excel.Z_TEST;

import io.github.hayeka.excel.anno.ExcelColumn;
import io.github.hayeka.excel.anno.ExcelEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * program:
 * description:
 * author:
 * create: 2021/8/27
 **/
@ExcelEntity(sheetName = "书籍信息统计")
public class Book {

    @ExcelColumn(columnName = "书籍名字", sort = 1)
    private String bookName;

    @ExcelColumn(columnName = "书籍作者", sort = 2)
    private String author;

    @ExcelColumn(columnName = "出版日期", sort = 0)
    private String password3;

    public Book(String bookName, String author, String password3) {
        this.bookName = bookName;
        this.author = author;
        this.password3 = password3;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPassword3() {
        return password3;
    }

    public void setPassword3(String password3) {
        this.password3 = password3;
    }


    public static List<Book> getList() {
        List<Book> bookList = new ArrayList<>();
        bookList.add(new Book("书籍好啊", "book ", "222"));
        bookList.add(new Book("西天取经", "houz i", "31"));
        bookList.add(new Book("保险经营手册", "insurance", "124"));
        bookList.add(new Book("英航哈哈书", "ying hang", "432"));
        bookList.add(new Book("测试书籍", "ceshi", "543"));
        bookList.add(new Book("书籍好啊", "book ", "222"));
        bookList.add(new Book("西天取经", "houz i", "31"));
        bookList.add(new Book("保险经营手册", "insurance", "124"));
        bookList.add(new Book("英航哈哈书", "ying hang", "432"));
        bookList.add(new Book("测试书籍", "ceshi", "543"));
        bookList.add(new Book("书籍好啊", "book ", "222"));
        bookList.add(new Book("西天取经", "houz i", "31"));
        bookList.add(new Book("保险经营手册", "insurance", "124"));
        bookList.add(new Book("英航哈哈书", "ying hang", "432"));
        bookList.add(new Book("测试书籍", "ceshi", "543"));
        return bookList;
    }
}
